package com.itmiaojie.dao;

import com.itmiaojie.pojo.Permission;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

public interface PermissionDao {
    @Select("SELECT p.* FROM t_permission AS p,t_role_permission AS rp WHERE  p.`id` = rp.`permission_id` AND rp.`role_id` = #{rid}")
    Set<Permission> findByRoleId(Integer id);
}
